Communications 104

I will say "Hello World" to the reader using the status bar when he or she presses the button below.

Discussion

This fourth "hello" program uses the status bar on the bottom of the screen to greet the reader. There are no JavaScript calls from the HTML body. Instead, a button's onClick event is used to trigger the call to set the window.status.

The event call

<FORM>
<INPUT
TYPE="button"
VALUE=" Say Hello World to the Reader "
onClick="window.status='Hello World'"
>
</FORM>
Copyright ©2000 by Charles River Media, All Rights Reserved